Previous | Next

# file: find out a file's type

- $ file wasp1.jpg
  wasp1.jpg: JPEG image data, JFIF standard 1.01
- $ file /var/mail/akkana
  /var/mail/akkana: ASCII mail text
- $ file /usr/bin/gimp
  /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs), stripped
- $ file /usr/games/wargames
  /usr/games/wargames: POSIX shell script text executable

Find out the type of a file:

whether it's an executable program, a graphics file, a text document, source code or whatever.

Another confusing name, sigh.

But the important thing here is that wargames is a script.